package com.huawei.service.impl;

import com.huawei.dao.PersonMapper;
import com.huawei.entity.Person;
import com.huawei.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceImpl implements IPersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public List<Person> listPerson() {
        List<Person> persons = personMapper.queryAll();
        return persons;
    }
}
